package com.ys.service.amazonorder.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ys.mapper.amazonorder.AmazonorderMapper;
import com.ys.service.amazonorder.TpAmazonShopOrderLatestService;

@Service("tpAmazonShopOrderLatestService")
public class TpAmazonShopOrderLatestServiceImpl implements TpAmazonShopOrderLatestService {

	@Autowired
	private AmazonorderMapper amazonorderMapper;
	
	@Override
	public void addBatchFromOrigin(String sellerId) {
		amazonorderMapper.deleteBatchTpAmazonShopOrderLatestBySeller(sellerId);
		
		amazonorderMapper.insertBatchTpAmazonShopOrderLatestBySeller(sellerId);
		
	}
}
